package bairui.international.console.web.controller.finance.withdraw;

import com.lianjing.sh.spring.web.controller.enhance.module.Module;
import com.lianjing.sh.spring.web.controller.enhance.module.ModuleHead;

/**
 *
 * Module_RemitImg
 *
 */
class Module_RemitImg{

	
	public Module module(
		bairui.international.model.domain.jpa.TB_BranchCompanyWithdrawOrder bean
		, 
		C_Finance_Withdraw_Detail_Edit.Edit.Operate c_Finance_Withdraw_Detail_Edit_Edit_Operate
				
		,com.lianjing.sh.spring.web.controller.enhance.input.InputModelContextMethodInfoEditor ... editors
		
	){
		return moduleTemplate(
				bean
				, 
				c_Finance_Withdraw_Detail_Edit_Edit_Operate
						
				,editors
			);
	}
	
	public Module module(
		java.util.List<bairui.international.model.domain.jpa.TB_BranchCompanyWithdrawOrder> bean
		, 
		C_Finance_Withdraw_Detail_Edit.Edit.Operate c_Finance_Withdraw_Detail_Edit_Edit_Operate
				
		,com.lianjing.sh.spring.web.controller.enhance.input.InputModelContextMethodInfoEditor ... editors
		
	){
		return moduleTemplate(
				bean
				, 
				c_Finance_Withdraw_Detail_Edit_Edit_Operate
						
				,editors
			);
	}
	
	
	/**
	 * 编辑模块
	 */
	private Module moduleTemplate(
		Object bean
		, 
		C_Finance_Withdraw_Detail_Edit.Edit.Operate c_Finance_Withdraw_Detail_Edit_Edit_Operate
				
		,com.lianjing.sh.spring.web.controller.enhance.input.InputModelContextMethodInfoEditor ... editors
		
	){
		return
			new Module(
					new ModuleHead("汇款截图")
					, 
					new com.lianjing.sh.spring.web.controller.enhance.module.body.EditModuleBody(
							bean, 
							Model.class,
							c_Finance_Withdraw_Detail_Edit_Edit_Operate, 
							Relation.relations(
								)
							,editors
						)
				);
	}
	
	/**
	 * 输入模型
	 */
	static public class Models {
		private @lombok.Getter @lombok.Setter java.util.List<Model> models = new java.util.ArrayList<>();
	}
	
	@org.springframework.stereotype.Component("bairui.international.console.web.controller.finance.withdraw.Module_RemitImg$Model")
	
	static public class Model
	
	 extends bairui.international.model.domain.jpa.TB_BranchCompanyWithdrawOrder
	
	 implements 
	
		com.lianjing.sh.spring.web.controller.enhance.input.InputModelable
	
	{
	
	
	
		/**
	
		 * 默认构造函数
	
		 */
	
		public Model(){}
	
	
	
		/**
	
		 * 构造函数
	
		 */
	
		public Model(
	
			bairui.international.model.domain.jpa.TB_BranchCompanyWithdrawOrder bean
	
		){
	
			if(null != bean){
	
				this.setRemitImgUrl(bean.getRemitImgUrl());
	
			}
	
		}
	
		
	
	
	
	
	
		/**
	
		 * 文件属性
	
		 */
	
		private org.springframework.web.multipart.MultipartFile remitImgUrlFile;
	
		
	
		/**
	
		 * 文件方法
	
		 */
	
		@com.sh_lianjing.reflect.method.annotation.MethodOrder(1001)
	
		@com.lianjing.sh.model.common.annotation.Comment("汇款截图")
	
		
	
		@com.lianjing.sh.validate.file.FileNotEmpty
	
		@com.lianjing.sh.validate.file.FileType(extension={"bmp","png","jpg","jpeg"})
	
		@com.lianjing.sh.validate.file.Image
	
		public org.springframework.web.multipart.MultipartFile getRemitImgUrlFile() {
	
			return this.remitImgUrlFile;
	
		}
	
		public void setRemitImgUrlFile(org.springframework.web.multipart.MultipartFile remitImgUrlFile) {
	
			this.remitImgUrlFile = remitImgUrlFile;
	
		}
	
	
	
		/**
	
		 * 非继承属性
	
		 */
	
	
	
		/**
	
		 * 得到输入属性
	
		 */
	
		/** 得到汇款截图 */
	
		public org.springframework.web.multipart.MultipartFile gainRemitImgUrlFile() {
	
			return this.getRemitImgUrlFile();
	
		}
	
	
	
		/**
	
		 * 转换到表单数据格式
	
		 */
	
		public java.util.Map<String, String> toFormData() throws com.sh_lianjing.serialize.json.jackson.exception.JsonException{
	
			return com.lianjing.sh.web.common.util.Util_Form.beanToFormDataFormat(this);
	
		}
	
	
	
	}
	
	
	
	static public class Relation
	{
		public static java.util.Map<String, java.util.List<?>> relations(
		){
			java.util.Map<String, java.util.List<?>> map = new java.util.HashMap<>();
			return map;
		}
	}
	
	
	
	/**
	 * 输出模型
	 */
	

}
